package mfund.com.interceptor;

import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.web.servlet.ModelAndView;


public class TestInterceptor extends  HandlerInterceptorAdapter
{
	public boolean preHandle(HttpServletRequest request,HttpServletResponse response,Object handler){
		System.out.println("this is preHandle=============================");
		return true;
	}

	public void postHandle(HttpServletRequest request,HttpServletResponse response,Object handler,ModelAndView modelAndView)
	{
		System.out.println("this is postHandle======================");
	}

	public void afterHandle(HttpServletRequest request,HttpServletResponse response,Object handler,Exception ex)
	{
		System.out.println("this is afterHandle=================================");
	}
}